﻿
<div id="__Template" node="template" style="display: none;">
    <div id="__TemplateForm">
    </div>
    <div id="__TemplateIcon">
        <span class="field-group-addon">
            <span class="icon"></span>
        </span>
    </div>
    <div id="__TemplateField">
        <div class="form-group">
            <div class="title">
                <label for="__Input" class="control-label"></label>
                <span class="required">*</span>
                <span class="tooltips glyphicon glyphicon-question-sign" data-toggle="tooltip" data-placement="right"></span>
            </div>
            <div class="field">
                @*<input type="email" name="__Input" class="form-control" required>*@
                <span data-for="__Input" class="k-invalid-msg"></span>
            </div>
        </div>
    </div>
    <div id="__TemplateCheckbox">
        <div class="checkbox">
            <input id="__checkbox" type="checkbox">
            <label for="__checkbox">复选框</label>
        </div>
    </div>
    <div id="__TemplateRadio">
        <div class="radio">
            <input id="__radio" type="radio">
            <label for="__radio">单选框</label>
        </div>
    </div>
    <button id="__TemplateButton">
        <span class="button-icon"></span>
        <span class="button-label"></span>
        <span class="caret"></span>
    </button>
    <div id="__TemplateUpload">
        <span class="button-icon"></span>
        <span class="button-label"></span>
        <input class="button-input" data-role="kendoUpload" name="files" type="file" data-fieldset="false" />
    </div>
    <div id="__TemplateButtonGroup">
        <div class="btn-group">
            <button type="button" class="btn btn-sm dropdown-toggle waves-effect waves-light" data-toggle="dropdown" aria-expanded="false"></button>
            <ul class="dropdown-menu" role="menu">
                @*<li><a data-button="get" data-url="/odata/Codes?$select=Id,Name&$top=10" data-success-text="获取Code成功!" data-success="#:function(d){alert('OK')}">第一个按钮</a></li>
                <li><a data-button="download" data-url="login_bg.png">下载</a></li>
                <li class="divider"></li>
                <li><a>第..........个按钮</a></li>*@
            </ul>
        </div>
    </div>
    <script id="__TemplateFileAttachment" type="text/x-kendo-template">
        <div class="file-content">
        <span class='k-progress'></span>
        <div class='file-wrapper'>
        <div class="file-content-left" title="#=name||files[0].Name#">
        <img class="file-icon" src="#=$.com.getAttachmentFileName(files[0].Name, files[0].Path)#" onerror="javascript: this.src = '/lib/devonline/img/fileico/default.png';" />
        <span class='file-name'>#=$.com.getDisplayFileName(name||files[0].Name)#</span>
        </div>
        <strong class="k-upload-status" data-path="#=files[0].Path#">
        <button type='button' class='k-upload-action'></button>
        <button type='button' class='k-upload-action'></button>
        <button type='button' class='k-upload-action'></button>
        </strong>
        </div>
        </div>
    </script>
    <div id="__TemplateDownloadList">
        <div class="btn-group btn-group-sm">
            @*<button type="button" data-button="download" data-url="image1.jpg">image1.jpg</button>
            <button type="button" data-button="download" data-url="image2.jpg">image2.jpg</button>*@
        </div>
    </div>
    <form id="__DownloadForm" action="/api/Attachments/Download" method="get">
        @*<input type="hidden" name="fileName" />
        <input type="hidden" name="columnNames" />*@
    </form>
    <div id="__TemplateShowBox">
        <div class="showbox form-group col-md-12">
            <div class="title col-sm-6 col-xs-6 col-md-6" style="padding-right: 10px;">
                <label for="__Input" class="control-label"></label>
            </div>
            <div class="showbox-tags col-md-12" style="padding-left: 0px;">
            </div>
            <input type="hidden" />
        </div>
    </div>
    <div id="__TemplateTag">
        <span class='tag'><span class="showbox-content" style="margin-right: 10px"></span><a href='#' class="showbox-remove">x</a></span>
    </div>
</div>

<div id="__globalMask" class="modal-backdrop fade in" data-level="0" style="z-index:99999; display:none;">
    <div style="z-index:100000; width:56px; height:20px; margin-top:18%; margin-left:auto; margin-right:auto;">
        <img src="/lib/kendoui/dist/styles/web/Bootstrap/loading-image.gif" />
    </div>
</div>